package com.gs.SynAntiWandering.view;

import com.gs.SynAntiWandering.apiresult.ApiResultData;
import com.gs.SynAntiWandering.db.dto.ShortDto;
import com.gs.SynAntiWandering.db.dto.VersionDto;

import java.io.File;
import java.util.List;

public interface ISettingsView extends IView {
    void onGetSiteSuccess(ApiResultData<List<ShortDto>> apiResultData);
    void onGetSiteFail(Exception e);

    void onUploadSiteSuccess(ApiResultData<String> apiResultData, String siteName, String siteId);
    void onUploadSiteFail(Exception e);

    void onUploadLanguageSuccess(ApiResultData<String> apiResultData);
    void onUploadLanguageFail(Exception e);

    void onGetVersionSuccess(ApiResultData<VersionDto> apiResultData);
    void onGetVersionFails(Exception e);

    void onDownloadFileSuccess(File file);
    void onDownloadProgress(int progress);
    void onDownloadFails(Exception e);

    void onLogoutSuccess(ApiResultData<String> apiResultData);
    void onLogoutFail(Exception e);

}
